{include file="header.html"}

<div class="main fn-clear">
    	{include file="safe_menu.html"}

        <div class="safe-content fn-left">
        	<h1>实名认证</h1>
            {if $certed eq 0}
            <form id="certificate_form" action="index.php?c=index&a=submit_cert" method="post">
            <table class="edit-tab" style="width:700px">
            	<tr>
                    <input type="hidden" name="encrypt_code" value="{$encrypt_code}"/>
                	<td align="right"><em>*</em>真实姓名/企业名称：</td>
                	<td><input name="realname" type="text" /></td>
                </tr>
            	<tr>
               	  	<td align="right"><em>*</em>身份证号/企业经营许可证编号：</td>
                	<td><input type="text" name="id_card"/></td>
                </tr>
            	<tr>
               	  	<td align="right"><em>*</em>身份证正面/企业证件：</td>
                	<td><input type="hidden" name="id_positive"  id="id_positive"><iframe id="if_positive" src="index.php?c=index&a=upload_page&face=positive" frameborder="0" scrolling="no" width="380" height="35"></iframe></td>
                </tr>
            	<tr>
                	<td align="right"><em>*</em>身份证背面：</td>
                	<td><input type="hidden" name="id_back" id="id_back"><iframe id="if_back" src="index.php?c=index&a=upload_page&face=back" frameborder="0" scrolling="no" width="380" height="35"></iframe></td>
                </tr>
                <tr>
                	<td></td>
                    <td><h4><span class="red">企业请上传企业经营许可证，税务登记证，组织机构代码证任选其一</span><br />证件必须是清晰彩色原件电子版，可以是扫描件或者数码拍摄照片。<br />照片中需要能看清姓名、身份证号码等信息。<br />仅支持.jpg .jpeg .bmp 的图片格式。图片大小不超过2M。</h4></td>
                </tr>
            	<tr>
                	<td align="right"></td>
                	<td><a href="javascript:void(0);" class="btn-orange" id="submit_cert">提交</a></td>
                </tr>
            </table>
            </form>
            {elseif $certed eq 1}
            <p>审核中，我们会在一个工作日内审核完毕。。。。</p>
            {elseif $certed eq 3}
            <p>审核未通过：{$rs.reject_note}。在下面重新申请</p>

            <form id="certificate_form" action="index.php?c=index&a=submit_cert" method="post">
            <table class="edit-tab" style="width:700px">
                <tr>
                    <input type="hidden" name="encrypt_code" value="{$encrypt_code}"/>
                    <td align="right"><em>*</em>真实姓名/企业名称：</td>
                    <td><input name="realname" type="text" /></td>
                </tr>
                <tr>
                    <td align="right"><em>*</em>身份证号/企业经营许可证编号：</td>
                    <td><input type="text" name="id_card"/></td>
                </tr>
                <tr>
                    <td align="right"><em>*</em>身份证正面/企业证件：</td>
                    <td><input type="hidden" name="id_positive"  id="id_positive"><iframe id="if_positive" src="index.php?c=index&a=upload_page&face=positive" frameborder="0" scrolling="no" width="380" height="35"></iframe></td>
                </tr>
                <tr>
                    <td align="right"><em>*</em>身份证背面：</td>
                    <td><input type="hidden" name="id_back" id="id_back"><iframe id="if_back" src="index.php?c=index&a=upload_page&face=back" frameborder="0" scrolling="no" width="380" height="35"></iframe></td>
                </tr>
                <tr>
                    <td></td>
                    <td><h4><span class="red">企业请上传企业经营许可证，税务登记证，组织机构代码证任选其一</span><br />证件必须是清晰彩色原件电子版，可以是扫描件或者数码拍摄照片。<br />照片中需要能看清姓名、身份证号码等信息。<br />仅支持.jpg .jpeg .bmp 的图片格式。图片大小不超过2M。</h4></td>
                </tr>
                <tr>
                    <td align="right"></td>
                    <td><a href="javascript:void(0);" class="btn-orange" id="submit_cert">提交</a></td>
                </tr>
            </table>
            </form>
            {else}
            <!--if认证通过-->
            <table class="edit-tab" style="width:700px">
            	<tr>
                	<td align="right">真实姓名/企业名称：</td>
                	<td>{$rs.real_name}</td>
                </tr>
            	<tr>
               	  	<td align="right">身份证号/企业经营许可证编号：</td>
                	<td>{$rs.idcard}</td>
                </tr>
            	<tr>
               	  	<td align="right">身份证正面/企业证件：</td>
                	<td><div class="card-face"><span><img src="{$site_url}/{$rs.id_positive}" /></span><a href="" target="_blank">查看</a></div></td>
                </tr>
            	<tr>
                	<td align="right">身份证背面：</td>
                	<td><div class="card-face"><span><img src="{$site_url}/{$rs.id_back}" /></span><a href="{$site_url}/{$rs.id_back}" target="_blank">查看</a></div></td>
                </tr>
            </table>
            {/if}
        </div>
</div>
<script src="{$site_url}/statics/js/certificate.js"></script>
{include file="footer.html"}
